//
//  discoverCell.m
//  Focus
//
//  Created by xwc on 14-10-30.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "discoverCell.h"

@implementation discoverCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        UILabel *titleLable = [[UILabel alloc] init];
        self.titleLable = titleLable;
        [titleLable release];
        [self.contentView addSubview:self.titleLable];

        UIImageView *titleImageView = [[UIImageView alloc] init];
        self.titleImageView = titleImageView;
        [titleImageView release];
        [self.contentView addSubview:self.titleImageView];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    //    self.contentView.frame.size.height;
    self.titleImageView.frame = CGRectMake(20, 20, 32, 32);
    self.titleLable.frame = CGRectMake(60, 5, 200, self.contentView.frame.size.height);
    
}

- (void)dealloc
{
    [_titleLable release];
    [_titleImageView release];
    [super dealloc];
}


- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
